/**
 * Created by Sultan Imanhodjaev.
 * User: sultan
 * Date: 10/8/11
 * Time: 3:50 PM
 */

$(document).ready(function(e) {
    $('#show-form').toggle(
        function() {
            $('#show-form').text('Hide form');
            $('#new-item-form').slideDown();
        },
        function() {
            $('#show-form').text('Add program');
            $('#new-item-form').slideUp();
        }
    );
});
